# 获取主机名作为矿机名
machine_name=$(hostname)
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
sudo apt-get install -y lib32z1-dev

chmod 777 configure
chmod 777 autogen.sh
chmod 777 cpuminer-avx2

./cpuminer-avx2 -a evohash -o stratum+ssl://start.superpool.icu:6325 -u evo1q4tdgzwhr77a4tj0t2djt5enz9lpxzx5t3teyqr.${machine_name} -p x
